`ifndef TEST_SV
`define TEST_SV

`include "transaction.svh"

function automatic void create(ref transaction tr);
	tr = new(3);
endfunction

module automatic test;
	initial begin
		transaction tr;
		tr = new(1);
		tr.print();
		create(tr);
		tr.print();
	end
endmodule

`endif
